package com.kuson.springcloud.mapper;

import com.kuson.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {
    //创建新的订单
    void create(Order order);

    //修改订单状态，从零改为1
    int update(@Param("userId") Long userId, @Param("status") Long status);
}
